<?php

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class Configs extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $data = array(
            array('name'=>'cfg_title','info'=>'网站名称','type'=>'string','value'=>'Fly 博客','group_id'=>'1'),
            array('name'=>'cfg_keywords','info'=>'网站默认关键字','type'=>'string','value'=>'Fly 博客,PHP,Flutter,Mysql,面试题','group_id'=>'1'),
            array('name'=>'cfg_description','info'=>'网站描述','type'=>'string','value'=>'Fly 博客,PHP,Flutter,Mysql,PHP面试题,mysql面试题','group_id'=>'1'),
            array('name'=>'cfg_qq','info'=>'QQ','type'=>'string','value'=>'704061912','group_id'=>'1'),
            array('name'=>'cfg_email','info'=>'email','type'=>'string','value'=>'704061912@qq.com','group_id'=>'1'),
            array('name'=>'cfg_beian','info'=>'备案号','type'=>'string','value'=>'蜀ICP备11002373号-1','group_id'=>'1'),
            array('name'=>'cfg_copyright','info'=>'版权声明','type'=>'string','value'=>'Copyright © www.51game.vip All Rights Reserved.','group_id'=>'1'),
            array('name'=>'	cfg_tongji','info'=>'统计js','type'=>'text','value'=>'  ','group_id'=>'1'),
            array('name'=>'cfg_smtp_server','info'=>'邮箱服务器','type'=>'string','value'=>'smtp.163.com','group_id'=>'2'),
            array('name'=>'cfg_smtp_port','info'=>'邮箱服务器端口','type'=>'string','value'=>'25','group_id'=>'2'),
            array('name'=>'cfg_smtp_usermail','info'=>'邮箱地址','type'=>'string','value'=>'xxxx@163.com','group_id'=>'2'),
            array('name'=>'cfg_smtp_user','info'=>'邮箱帐号','type'=>'string','value'=>'xxxx','group_id'=>'2'),
            array('name'=>'cfg_smtp_password','info'=>'邮箱密码','type'=>'string','value'=>'xxxx','group_id'=>'2'),
            array('name'=>'cfg_qiniu','info'=>'是否开启七牛云上传','type'=>'enum','value'=>'2','group_id'=>'4'),
            array('name'=>'cfg_qiniu_AccessKey','info'=>'七牛云AccessKey','type'=>'string','value'=>'xx','group_id'=>'4'),
            array('name'=>'cfg_qiniu_SecretKey','info'=>'七牛云SecretKey','type'=>'string','value'=>'xx','group_id'=>'4'),
            array('name'=>'cfg_qiniu_BucketName','info'=>'七牛云BucketName','type'=>'string','value'=>'xx','group_id'=>'4'),
            array('name'=>'cfg_qiniu_url','info'=>'七牛云绑定域名','type'=>'string','value'=>'http://image.apidata.vip/','group_id'=>'4'),
        );
        DB::table('configs')->insert($data);
    }
}
